oakmac / chessboardjs

JavaScript chessboard
https://chessboardjs.com
MIT License
2.01k stars 408 forks source link

add common js compatible export #179

Closed iksarfo closed 4 years ago

iksarfo commented 4 years ago

The build failed the standard JS linting but introduced more changes than I thought you'd like

vesper8 commented 4 years ago

will this PR allow us to do something like

import ChessBoard from '@chrisoakman/chessboardjs';

or

import '@chrisoakman/chessboardjs';

In a Vue/React project? If so... please can you merge it @oakmac ! : )

iksarfo commented 4 years ago

Sorry, needs revision! :/

iksarfo commented 4 years ago

@vesper8 newer PR actually has a chance.

The following worked

import { Chessboard } from './chessboard-1.0.0.js'

honkskillet commented 4 years ago

@ofraski that doesn't seem to work for me